org.eclipse.vtp.desktop.media.core
Class ContentDialog

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.dialogs.Dialog
          extended by org.eclipse.vtp.desktop.media.core.ContentDialog
All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
Direct Known Subclasses:
PromptBindingDialog, VoiceContentDialog

public abstract class ContentDialog
extends org.eclipse.jface.dialogs.Dialog

A dialog for editing a list of content objects.

Author:
Lonnie Pryor

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
protected  java.util.List contents
          The list of configured content objects.
 
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
 
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK
 
Constructor Summary
ContentDialog(org.eclipse.jface.window.IShellProvider parentShellProvider)
          Creates a new ContentDialog.
ContentDialog(org.eclipse.swt.widgets.Shell parentShell)
          Creates a new ContentDialog.
 
Method Summary
protected  void contentChanged()
          Called when the content of the dialog has changed.
protected  org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
           
protected  org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
           
protected  java.util.List getVariables()
           
protected  boolean isContentValid()
          Returns true if the content of this dialog is valid and the OK button should be enabled.
 void setMediaProvider(IMediaProvider mediaProvider)
          Sets the media provider the list is bound to.
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createButtonsForButtonBar, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
 
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, configureShell, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contents

protected final java.util.List contents
The list of configured content objects.

Constructor Detail

ContentDialog

public ContentDialog(org.eclipse.swt.widgets.Shell parentShell)
Creates a new ContentDialog.

Parameters:
parentShell - The shell to create the dialog from.

ContentDialog

public ContentDialog(org.eclipse.jface.window.IShellProvider parentShellProvider)
Creates a new ContentDialog.

Parameters:
parentShellProvider - The shell provider to create the dialog from.
Method Detail

setMediaProvider

public void setMediaProvider(IMediaProvider mediaProvider)
Sets the media provider the list is bound to.

Parameters:
mediaProvider - The media provider the list is bound to.

contentChanged

protected void contentChanged()
Called when the content of the dialog has changed.


isContentValid

protected boolean isContentValid()
Returns true if the content of this dialog is valid and the OK button should be enabled.

Returns:
True if the content of this dialog is valid and the OK button should be enabled.

getVariables

protected java.util.List getVariables()

createContents

protected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
Overrides:
createContents in class org.eclipse.jface.dialogs.Dialog

createDialogArea

protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
Overrides:
createDialogArea in class org.eclipse.jface.dialogs.Dialog